package org.ytor.core.sysapi.monitor.resp;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
 * created by yangtong on 2025/7/6 21:48:21
 * <br/>
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "系统健康状态")
public class HealthStatusResp {
    @Schema(description = "CPU健康状态", example = "healthy", allowableValues = {"healthy", "warning", "critical"})
    private String cpu;

    @Schema(description = "内存健康状态", example = "warning", allowableValues = {"healthy", "warning", "critical"})
    private String memory;

    @Schema(description = "线程健康状态", example = "healthy", allowableValues = {"healthy", "warning", "critical"})
    private String threads;

    @Schema(description = "数据库健康状态", example = "healthy", allowableValues = {"healthy", "warning", "critical"})
    private String database;

    @Schema(description = "总体健康状态", example = "warning", allowableValues = {"healthy", "warning", "critical", "error"})
    private String overall;

    @Schema(description = "错误信息（如果存在）", example = "")
    private String error;
}
